<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>LayuiHi</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <link rel="stylesheet" href="__PUBLIC_PACK__/layui/css/layui.css?v={:config('hiphp.version')}" media="all">
    <link rel="stylesheet" href="__MODULE_STATIC__/css/frame.css?v={:config('hiphp.version')}" media="all">
    <link rel="stylesheet" href="__MODULE_STATIC__/fonts/iconfont.css?v={:config('hiphp.version')}" media="all">
    {if isset($fontItems) && !empty($fontItems)}
    {foreach $fontItems as $v}
    <link rel="stylesheet" href="/{$v['link']}?v={$v['version']}" media="all">
    {/foreach}
    {/if}
    <style id="layuihi-bg-color"></style>
</head>
<body class="layui-layout-body layuihi-all">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header header">
        <div class="layui-logo"><a href=""> <img src="__MODULE_STATIC__/images/logo.png" alt="logo">
            <h1>HiPHP</h1>
        </a></div>
        <a>
            <div class="layuihi-tool"><i title="展开" class="icon iconfont iconmenuclose" data-side-fold="1"></i></div>
        </a>
        <ul class="layui-nav layui-layout-left layui-header-menu layui-header-pc-menu mobile layui-hide-xs">

        </ul>
        <ul class="layui-nav layui-layout-left layui-header-menu mobile layui-hide-sm">
            <li class="layui-nav-item"> <a href="javascript:;"><i class="fa fa-list-ul"></i> 选择模块<span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child layui-header-hi-menu">

                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item"> <a href="javascript:;" data-refresh="刷新"><i class="icon iconfont iconreflesh"></i></a> </li>
            <li class="layui-nav-item"> <a href="javascript:;" data-clear="清理" data-href="{:url('index/clear_cache')}" class="layuihi-clear"><i class="icon iconfont iconlaji"></i></a> </li>
            <li class="layui-nav-item layuihi-setting"> <a href="javascript:;">{$login['nick']}</a>
                <dl class="layui-nav-child">
                    <dd> <a href="javascript:;" class="login-out">退出登录</a> </dd>
                </dl>
            </li>
            <li class="layui-nav-item layuihi-select-bgcolor mobile layui-hide-xs"> <a href="javascript:;" data-bgcolor="配色方案"><i class="icon iconfont icongengduo"></i></a> </li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll layui-left-menu">

        </div>
    </div>
    <div class="layui-body">
        <div class="layui-tab" lay-filter="layuihiTab" id="top_tabs_box">
            <ul class="layui-tab-title" id="top_tabs">
                <li class="layui-this" id="layuihiHomeTabId" lay-id=""><i class="fa fa-home"></i> <span>首页</span></li>
            </ul>
            <ul class="layui-nav closeBox">
                <li class="layui-nav-item"> <a href="javascript:;"> <i class="fa fa-dot-circle-o"></i> 页面操作</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-page-close="other"><i class="fa fa-window-close"></i> 关闭其他</a></dd>
                        <dd><a href="javascript:;" data-page-close="all"><i class="fa fa-window-close-o"></i> 关闭全部</a></dd>
                    </dl>
                </li>
            </ul>
            <div class="layui-tab-content clildFrame">
                <div id="layuihiHomeTabIframe" class="layui-tab-item layui-show"> </div>
            </div>
        </div>
    </div>
</div>
<script>
    var admin_path = '{:config("system.admin_path")}';
</script>
{include file="block/layui" /}
<script>
    layui.use(['element', 'layer', 'layuihi'], function () {
        var $ = layui.jquery, element = layui.element, layer = layui.layer;
        layuihi.init('{:url("index")}');
        $('.login-out').on("click", function () {
            $.ajax({
                url:"{:url('entry/logout')}",
                type:"post",
                dataType:"json",
                success:function(data){
                    layer.msg('退出成功', function () {
                        window.location.href = '/'+admin_path;
                    });
                },
                error:function(data){
                    $.messager.alert('错误',data.msg);
                }
            });
        });
    });
</script>
</body>
</html>